package com.ruoyi.business.controller;

import com.ruoyi.business.domain.UserExam;
import com.ruoyi.business.domain.bo.UserExamBo;
import com.ruoyi.business.domain.vo.UserExamVo;
import com.ruoyi.business.service.IUserExamService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 最爱喝兽奶
 * @create 2022/8/16
 **/
@RestController
@RequestMapping("/business/userExam")
public class UserExamController extends BaseController {

    @Autowired
    private IUserExamService userExamService;

    /**
     * 分页查询用户的考试信息
     * @return
     */
    @ApiOperation("分页查询用户的考试信息")
    @GetMapping("/list")
    public AjaxResult queryUserExamList(UserExamBo bo) {
        TableDataInfo<UserExamVo> result = userExamService.queryUserExamList(bo);
        return AjaxResult.success(result);
    }



}
